<?php
    /**
     * User: Viet Anh
     * Date: 10/06/2014
     * Time: 23:36
     */
    require_once dirname(dirname(__FILE__)) . '/config/config.php';
    require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_option.php";

    class api_config
    {
        public static function get_easypaisa_detail()
        {
            $dao_option = new dao_option();

            return $dao_option->get_option_value('easypaisa_description');
        }

        public static function get_skrill_email()
        {
            $dao_option = new dao_option();

            return $dao_option->get_option_value('skrill_merchant_email');
        }

        public static function set_easypaisa_detail($detail)
        {
            $dao_option = new dao_option();

            return $dao_option->set_option_value('easypaisa_description', $detail);
        }

        public static function set_skrill_email($email)
        {
            $dao_option = new dao_option();

            return $dao_option->set_option_value('skrill_merchant_email', $email);
        }
    }